#include "Sprite.h"


namespace Graphics
{
	Sprite::Sprite(int width, int height, unsigned char depth)
	{ 
		if(width == 0 || height == 0 || depth < 0)
			throw 123;

		_width = width; 
		_height = height;
		_depth = depth;
		_data = new ImageBuffer(width, height);
	};
	
	Sprite::~Sprite()
	{
		if(_data != 0)
			delete _data;
	}
}